<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qquickitem.cpp -->
  <title>EnterKey QML 类型 | Qt Quick 5.12.3</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.12</a></td><td ><a href="qtquick-index.html">Qt Quick</a></td><td ><a href="qtquick-qmlmodule.html">QML类型</a></td><td >EnterKey QML 类型</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtquick-index.html">Qt 5.12.3 参考指南</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">目录</a></h3>
<ul>
<li class="level1"><a href="#attached-properties"><span lang="zh-cn">附加属性</span></a></li>
<li class="level1"><a href="#details">详细信息</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">EnterKey QML 类型</h1>
<span class="subtitle"></span>
<!-- $$$EnterKey-brief -->
<p>提供一个属性来操作屏幕键盘上 Enter 键的外观。 <a href="#details">更多...</a></p>
<!-- @@@EnterKey -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> 导入语句：</td><td class="memItemRight bottomAlign"> import QtQuick 2.12</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 5.6</td></tr></table></div><ul>
<li><a href="qml-qtquick-enterkey-members.html">所有成员的列表，包括继承成员</a></li>
</ul>
<a name="attached-properties"></a>
<h2 id="attached-properties">附加属性</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtquick-enterkey.html#type-attached-prop">type</a></b></b> : enumeration</li>
</ul>
<!-- $$$EnterKey-description -->
<a name="details"></a>
<h2 id="details">详细信息</h2>
	<a href="file:///E:/_Personal/Qt5.12-Document-Trans-in-Chinese/qtquick/qml-qtquick-enterkey.html">EnterKey</a>附加属性被用来操纵回车键的屏幕键盘上的外观和行为。<!-- @@@EnterKey --><h2>附加属性<span lang="zh-cn">文档</span></h2>
<!-- $$$type -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="type-attached-prop">
<td class="tblQmlPropNode"><p>
<a name="type-attached-prop"></a><span class="name">EnterKey.type</span> : <span class="type"><a href="../qtqml/qml-enumeration.html">enumeration</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>保存 Enter 键的类型。</p>
<p><b>注意：</b>并非所有平台都支持所有这些值。对于不受支持的值，将使用默认键。</p><div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">
			<span lang="zh-cn">值</span></th><th class="tbldscr">
			<span lang="zh-cn">描述</span></th></tr>
<tr><td class="topAlign"><code>Qt.EnterKeyDefault</code></td><td class="topAlign">默认回车键。这可以是接受输入并关闭键盘的按钮，也可以是在多行输入字段的情况下输入换行符的<i>返回</i>按钮。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeyReturn</code></td><td class="topAlign">显示插入换行符的<i>返回</i>按钮。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeyDone</code></td><td class="topAlign">
	显示<i>“完成”</i>按钮。通常，键盘会在按下按钮时关闭。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeyGo</code></td><td class="topAlign">显示<i>“<span lang="zh-cn">前进</span>”</i>按钮。通常在输入 URL 时在地址栏中使用。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeySend</code></td><td class="topAlign">显示<i>“发送”</i>按钮。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeySearch</code></td><td class="topAlign">显示<i>“搜索”</i>按钮。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeyNext</code></td><td class="topAlign">显示<i>“下一步”</i>按钮。通常用于表单以允许导航到下一个输入字段而无需关闭键盘。</td></tr>
<tr><td class="topAlign"><code>Qt.EnterKeyPrevious</code></td><td class="topAlign">显示<i>“上一个”</i>按钮。</td></tr>
</table></div>
</div></div><!-- @@@type -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
